#!/usr/bin/python
# -*- coding: utf-8 -*-
"""docstrings
"""

from former_project.common_logic.pythonlib import memcache
from former_project import config as _config

__all__ = ['cache', 'other_cache']

# sudo apt-get install memcached

# 普通缓存
cache = memcache.Client(_config.COMMON_CACHE)

# 其他缓存
other_cache = memcache.Client(_config.OTHER_CACHE)

if __name__ == '__main__':
    import datetime
    
    print cache
    print cache.get('a')
    print cache.set('a', datetime.datetime.now())
    print cache.get('a')
    print cache.get_stats()

    
